package com.zhouxiaoge.json;

import java.util.Arrays;
import java.util.List;

/**
 * @author 周小哥  gqzmy@163.com 2022/8/14 10:08
 */

public class Employee {

    private Long id;

    private String name;

    private int age;

    private String email;

    private Address[] addresses;

    private List<Address> addressList;

    public Employee() {
    }

    public Employee(Long id, String name, int age, String email, Address[] addresses, List<Address> addressList) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.email = email;
        this.addresses = addresses;
        this.addressList = addressList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Address[] getAddresses() {
        return addresses;
    }

    public void setAddresses(Address[] addresses) {
        this.addresses = addresses;
    }

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", addresses=" + Arrays.toString(addresses) +
                ", addressList=" + addressList +
                '}';
    }
}
